using UnityEngine;
using System.Collections;

public class SpawnedText : MonoBehaviour
{
	public void Start () 
	{
		rigidbody.AddForce ((transform.up + transform.right) * 1000f);
		StartCoroutine ("WaitAndDie");
	}
	
	private IEnumerator WaitAndDie ()
	{
		yield return new WaitForSeconds (5f);
		
		Destroy (gameObject);
	}
}